<?php
class DBcnn_pgsql
{
	private static $db=null;
	public static function getPDOcnn()
	{ 
		if(DBcnn_pgsql::$db == null)
		{
			$dsn="pgsql:host=localhost;dbname=pgtest";
			DBcnn_pgsql::$db = new PDO($dsn, 'jiening', 'lovivid');
		}
		return DBcnn_pgsql::$db;
	}       
}   
